const express = require('express')
const app = express()
app.use((req, res, next) => {
  console.log('server1')
  res.message = 'aaa',
  next()
  res.end(res.message)
})
app.use((req, res, next) => {
  console.log('server2')
  res.message += 'bbb'
  next()
})
app.use((req, res, next) => {
  console.log('server3')
  res.message += 'ccc'
})
app.listen(9022, () => {
  console.log('服务器启动成功~')
})